 function fnTab1(obj, even) {
        var oBox = document.getElementById(obj);
        var aInp = oBox.getElementsByClassName('noBl');
        var aDiv = oBox.getElementsByClassName('videoList_newList');
       for (var i = 0; i < aInp.length; i++) {
            aInp[i].index = i;
            aInp[i][even] = function () {
                for (var i = 0; i < aInp.length; i++) {
                    aInp[i].className = 'noBl';
                    aDiv[i].className = 'videoList_newList hide';
                }
                this.className = 'noBl active';
                aDiv[this.index].className = 'videoList_newList show';
            };
        }
    }
    function fnTab2(obj, even) {
        var oBox = document.getElementById(obj);
        var aInp = oBox.getElementsByClassName('noBl'); 
        var tabs_item=oBox.getElementsByClassName("tabs_item")
        
        var aDiv = oBox.getElementsByClassName('videoList_newList');
       
        for (var i = 0; i < aInp.length; i++) {
            aInp[i].index = i;
            aInp[i][even] = function () {
                for (var i = 0; i < aInp.length; i++) {
                    aInp[i].className = 'noBl';
                    aDiv[i].className = 'videoList_newList hide';
                    tabs_item[i].className = 'tabs_item hide';
                }
                this.className = 'noBl active';
                aDiv[this.index].className = 'videoList_newList show';
                tabs_item[this.index].className = 'tabs_item show';
            };
        }
    }
    function fnTab3(obj, even) {
        var oBox = document.getElementById(obj);
        var aInp = oBox.getElementsByClassName('to');
        var aDiv = oBox.getElementsByClassName('tabs_item');
        for (var i = 0; i < aInp.length; i++) {
            aInp[i].index = i;
            aInp[i][even] = function () {
                for (var i = 0; i < aInp.length; i++) {
                    aInp[i].className = 'to';
                    aDiv[i].className = 'tabs_item hide';
                }
                this.className = 'to active';
                aDiv[this.index].className = 'tabs_item show';
            };
        }
    }
    function fnTab4(obj, even) {
        var oBox = document.getElementById(obj);//要加的作用域
        var aInp = oBox.getElementsByClassName('noBl'); //获取点击的div
        var aDiv = oBox.getElementsByClassName('tabs_item');//获取的选项卡
        for (var i = 0; i < aInp.length; i++) {
            aInp[i].index = i;
            aInp[i][even] = function () {
                for (var i = 0; i < aInp.length; i++) {
                    aInp[i].className = 'noBl';
                    aDiv[i].className = 'tabs_item hide';
                }
                this.className = 'noBl active';
                aDiv[this.index].className = 'tabs_item show';
            };
        }
    }
     function fnTab7(obj,even){
		  var oBox = document.getElementById(obj);//最大的div
        var aInp = oBox.getElementsByClassName('tb_img'); //获取点击的div
        console.log(aInp)
        var aDiv = oBox.getElementsByClassName('tb_a');//获取的选项卡
        console.log(aDiv);
        for (var i = 0; i < aInp.length; i++) {
            aInp[i].index = i;
            aInp[i][even] = function () {
                for (var i = 0; i < aInp.length; i++) {
                    aInp[i].className = 'tb_img';
                    aDiv[i].className = 'tb_a hide';
                }
                this.className = 'tb_img active';
                aDiv[this.index].className = 'tb_a show';
            };
        }
	}	
    fnTab1("box1","onmouseover");
    fnTab4("box6","onmouseover");
    fnTab1("box2","onmouseover");
    fnTab2("box3","onmouseover");
    fnTab2("box4","onmouseover");
    fnTab3("box5","onmouseover");
    fnTab1("box7","onmouseover");
    fnTab1("box8","onmouseover");
    fnTab4("box9","onmouseover");
    fnTab4("box_A","onmouseover");
    fnTab7("box_B","onmouseover")






    $(".list_one").hover(function () {
        $(this).find($(".showList")).stop().slideToggle()
    });

    //选择
    var btn1=document.getElementById("btn1");
    btn1.onclick=function()
    {
        var checkboxs=document.getElementsByClassName("xz");
        for(var i=0;i<checkboxs.length;i++)
        {
            checkboxs[i].checked=true;
        }
    }
    //取消全选
    var btn2=document.getElementById("btn2");
    btn2.onclick=function()
    {
        var checkboxs=document.getElementsByClassName("xz");
        for(var i=0;i<checkboxs.length;i++)
        {
            checkboxs[i].checked=false;
        }
    }
    //反选
    var btn3=document.getElementById("btn3");
    btn3.onclick=function()
    {
        var checkboxs=document.getElementsByClassName("xz");
        for(var i=0;i<checkboxs.length;i++)
        {
            if(checkboxs[i].checked)
            {
                checkboxs[i].checked=false;
            }
            else
            {
                checkboxs[i].checked=true;
            }
        }
    }
    
    $(".searchTxt").hover(function(){
	$(".sch").css("display","block")
},function(){
	$(".sch").css("display","none")
})

$(".sch").hover(function(){
	$(".sch").css("display","block")
},function(){
	$(".sch").css("display","none")
})

$(".sch>li a").click(function(){
	$(".schh").html($(this).html())
	
})

$(".photo_next").click(function(){
	$(".photo_list").stop().animate({left:"-200px"},1000)
})
$(".photo_prev").click(function(){
	$(".photo_list").stop().animate({left:"00px"},1000)
})